import {addFn} from './add/add'
import {getArrSum} from './tool/tool'

import './css/index.css'
import "./less/index.less"
console.log(addFn(10, 20));
console.log(getArrSum([1, 2, 3]));

   // 引入jquery
import $ from 'jquery'
$(function() {
    $('#app li:nth-child(odd)').css('color', 'red')
    $('#app li:nth-child(even)').css('color', 'green')
})

   // 引入图片-使用

import imgUrl from './assets/d2.png'
const theImg = document.createElement("img")
theImg.src = imgUrl
document.body.appendChild(theImg)

   // 引入字体图标文件
import './assets/fonts/iconfont.css'